const globalIp = getApp().globalData.userIp
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: []
  },

  alreadyshow(){
    var that = this;
    wx.request({
      url: globalIp + 'home/ordr/execCusInfo',
      data: {
        pageIndex: 0,
        lineNum: 1,
        openId: wx.getStorageSync('userInfo').openid,
        cardCode: wx.getStorageSync('userInfo').CardCode
      },
      header: {
        'content-type': 'application/json'
      },
      method: 'POST',
      success: function(res) {
        that.setData({
          list: res.data.jsonObject.data
        })
      },
    })
  },

  gridBtnTwo: function(e) {
    wx.navigateTo({
      url: '../orderIndex/orderIndex?lineNum='+e.currentTarget.dataset.num,
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.alreadyshow()
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },
  
})